package com.handlemvc.springmvc.util;

/**
 * @author ：tiger.
 * @date ：2021/10/13 01:35
 */
public class ClassUtils {

	/**
	 * 获取classLoader
	 * @return classLoader
	 */
	public static ClassLoader getClassLoader(){
		Thread thread = Thread.currentThread();
		ClassLoader contextClassLoader = thread.getContextClassLoader();
		if (contextClassLoader != null) {
			return contextClassLoader;
		}
		return ClassUtils.class.getClassLoader();
	}
}
